package com.cloudream.glndk;

import android.opengl.GLSurfaceView;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

/**
 * Created by Administrator on 2018/11/1 0001.
 */

public class Render implements GLSurfaceView.Renderer {


    public Render(){

    }


    static{
        System.loadLibrary("render");
    }

    @Override
    public void onSurfaceCreated(GL10 gl, EGLConfig config) {
        renderCreate();
    }

    @Override
    public void onSurfaceChanged(GL10 gl, int width, int height) {
        renderChagen(width,height);
    }

    @Override
    public void onDrawFrame(GL10 gl) {
        drawFrame();
    }



    public static native  void renderCreate();

    public static native void renderChagen(int width,int height);

    public static native void drawFrame();

}
